using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GroupCardRequest : GeneratedMessageLite<GroupCardRequest, GroupCardRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GroupCardRequest, GroupCardRequest.Builder>
		{
			private bool resultIsReadOnly;
			private GroupCardRequest result;
			protected override GroupCardRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GroupCardRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GroupCardRequest DefaultInstanceForType
			{
				get
				{
					return GroupCardRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint OpCode
			{
				get
				{
					return this.result.OpCode;
				}
				set
				{
					this.SetOpCode(value);
				}
			}
			public string GroupNickName
			{
				get
				{
					return this.result.GroupNickName;
				}
				set
				{
					this.SetGroupNickName(value);
				}
			}
			public uint MemberCount
			{
				get
				{
					return this.result.MemberCount;
				}
				set
				{
					this.SetMemberCount(value);
				}
			}
			public IPopsicleList<RoomInfo> MemberListList
			{
				get
				{
					return this.PrepareBuilder().memberList_;
				}
			}
			public int MemberListCount
			{
				get
				{
					return this.result.MemberListCount;
				}
			}
			public string GroupUserName
			{
				get
				{
					return this.result.GroupUserName;
				}
				set
				{
					this.SetGroupUserName(value);
				}
			}
			public Builder()
			{
				this.result = GroupCardRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GroupCardRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GroupCardRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GroupCardRequest other = this.result;
					this.result = new GroupCardRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GroupCardRequest.Builder Clear()
			{
				this.result = GroupCardRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GroupCardRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GroupCardRequest.Builder(this.result);
				}
				return new GroupCardRequest.Builder().MergeFrom(this.result);
			}
			public override GroupCardRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GroupCardRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is GroupCardRequest)
				{
					return this.MergeFrom((GroupCardRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GroupCardRequest.Builder MergeFrom(GroupCardRequest other)
			{
				return this;
			}
			public override GroupCardRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GroupCardRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GroupCardRequest._groupCardRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GroupCardRequest._groupCardRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 16u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
						if (num3 == 16u)
						{
							this.result.hasOpCode = input.ReadUInt32(ref this.result.opCode_);
							continue;
						}
					}
					else
					{
						if (num3 <= 32u)
						{
							if (num3 == 26u)
							{
								this.result.hasGroupNickName = input.ReadString(ref this.result.groupNickName_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasMemberCount = input.ReadUInt32(ref this.result.memberCount_);
								continue;
							}
						}
						else
						{
							if (num3 == 42u)
							{
								input.ReadMessageArray<RoomInfo>(num, text, this.result.memberList_, RoomInfo.DefaultInstance, extensionRegistry);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasGroupUserName = input.ReadString(ref this.result.groupUserName_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GroupCardRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public GroupCardRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public GroupCardRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public GroupCardRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public GroupCardRequest.Builder SetOpCode(uint value)
			{
				this.PrepareBuilder();
				this.result.hasOpCode = true;
				this.result.opCode_ = value;
				return this;
			}
			public GroupCardRequest.Builder ClearOpCode()
			{
				this.PrepareBuilder();
				this.result.hasOpCode = false;
				this.result.opCode_ = 0u;
				return this;
			}
			public GroupCardRequest.Builder SetGroupNickName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasGroupNickName = true;
				this.result.groupNickName_ = value;
				return this;
			}
			public GroupCardRequest.Builder ClearGroupNickName()
			{
				this.PrepareBuilder();
				this.result.hasGroupNickName = false;
				this.result.groupNickName_ = "";
				return this;
			}
			public GroupCardRequest.Builder SetMemberCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMemberCount = true;
				this.result.memberCount_ = value;
				return this;
			}
			public GroupCardRequest.Builder ClearMemberCount()
			{
				this.PrepareBuilder();
				this.result.hasMemberCount = false;
				this.result.memberCount_ = 0u;
				return this;
			}
			public RoomInfo GetMemberList(int index)
			{
				return this.result.GetMemberList(index);
			}
			public GroupCardRequest.Builder SetMemberList(int index, RoomInfo value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.memberList_[index] = value;
				return this;
			}
			public GroupCardRequest.Builder SetMemberList(int index, RoomInfo.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.memberList_[index] = builderForValue.Build();
				return this;
			}
			public GroupCardRequest.Builder AddMemberList(RoomInfo value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.memberList_.Add(value);
				return this;
			}
			public GroupCardRequest.Builder AddMemberList(RoomInfo.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.memberList_.Add(builderForValue.Build());
				return this;
			}
			public GroupCardRequest.Builder AddRangeMemberList(IEnumerable<RoomInfo> values)
			{
				this.PrepareBuilder();
				this.result.memberList_.Add(values);
				return this;
			}
			public GroupCardRequest.Builder ClearMemberList()
			{
				this.PrepareBuilder();
				this.result.memberList_.Clear();
				return this;
			}
			public GroupCardRequest.Builder SetGroupUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasGroupUserName = true;
				this.result.groupUserName_ = value;
				return this;
			}
			public GroupCardRequest.Builder ClearGroupUserName()
			{
				this.PrepareBuilder();
				this.result.hasGroupUserName = false;
				this.result.groupUserName_ = "";
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int OpCodeFieldNumber = 2;
		public const int GroupNickNameFieldNumber = 3;
		public const int MemberCountFieldNumber = 4;
		public const int MemberListFieldNumber = 5;
		public const int GroupUserNameFieldNumber = 6;
		private static readonly GroupCardRequest defaultInstance;
		private static readonly string[] _groupCardRequestFieldNames;
		private static readonly uint[] _groupCardRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasOpCode;
		private uint opCode_;
		private bool hasGroupNickName;
		private string groupNickName_ = "";
		private bool hasMemberCount;
		private uint memberCount_;
		private PopsicleList<RoomInfo> memberList_ = new PopsicleList<RoomInfo>();
		private bool hasGroupUserName;
		private string groupUserName_ = "";
		private int memoizedSerializedSize = -1;
		public static GroupCardRequest DefaultInstance
		{
			get
			{
				return GroupCardRequest.defaultInstance;
			}
		}
		public override GroupCardRequest DefaultInstanceForType
		{
			get
			{
				return GroupCardRequest.DefaultInstance;
			}
		}
		protected override GroupCardRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint OpCode
		{
			get
			{
				return this.opCode_;
			}
		}
		public string GroupNickName
		{
			get
			{
				return this.groupNickName_;
			}
		}
		public uint MemberCount
		{
			get
			{
				return this.memberCount_;
			}
		}
		public IList<RoomInfo> MemberListList
		{
			get
			{
				return this.memberList_;
			}
		}
		public int MemberListCount
		{
			get
			{
				return this.memberList_.Count;
			}
		}
		public string GroupUserName
		{
			get
			{
				return this.groupUserName_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseRequest)
				{
					return false;
				}
				if (!this.hasOpCode)
				{
					return false;
				}
				if (!this.hasMemberCount)
				{
					return false;
				}
				if (!this.BaseRequest.IsInitialized)
				{
					return false;
				}
				using (IEnumerator<RoomInfo> enumerator = this.MemberListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						RoomInfo current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							return false;
						}
					}
				}
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasOpCode)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.OpCode);
				}
				if (this.hasGroupNickName)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.GroupNickName);
				}
				if (this.hasMemberCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.MemberCount);
				}
				using (IEnumerator<RoomInfo> enumerator = this.MemberListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						RoomInfo current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(5, current);
					}
				}
				if (this.hasGroupUserName)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.GroupUserName);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GroupCardRequest()
		{
		}
		public RoomInfo GetMemberList(int index)
		{
			return this.memberList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] groupCardRequestFieldNames = GroupCardRequest._groupCardRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, groupCardRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasOpCode)
			{
				output.WriteUInt32(2, groupCardRequestFieldNames[5], this.OpCode);
			}
			if (this.hasGroupNickName)
			{
				output.WriteString(3, groupCardRequestFieldNames[1], this.GroupNickName);
			}
			if (this.hasMemberCount)
			{
				output.WriteUInt32(4, groupCardRequestFieldNames[3], this.MemberCount);
			}
			if (this.memberList_.Count > 0)
			{
				output.WriteMessageArray<RoomInfo>(5, groupCardRequestFieldNames[4], this.memberList_);
			}
			if (this.hasGroupUserName)
			{
				output.WriteString(6, groupCardRequestFieldNames[2], this.GroupUserName);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasOpCode)
			{
				num ^= this.opCode_.GetHashCode();
			}
			if (this.hasGroupNickName)
			{
				num ^= this.groupNickName_.GetHashCode();
			}
			if (this.hasMemberCount)
			{
				num ^= this.memberCount_.GetHashCode();
			}
			using (IEnumerator<RoomInfo> enumerator = this.memberList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					RoomInfo current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			if (this.hasGroupUserName)
			{
				num ^= this.groupUserName_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GroupCardRequest groupCardRequest = value as GroupCardRequest;
			if (groupCardRequest == null)
			{
				return false;
			}
			if (this.hasBaseRequest != groupCardRequest.hasBaseRequest || (this.hasBaseRequest && !this.baseRequest_.Equals(groupCardRequest.baseRequest_)))
			{
				return false;
			}
			if (this.hasOpCode != groupCardRequest.hasOpCode || (this.hasOpCode && !this.opCode_.Equals(groupCardRequest.opCode_)))
			{
				return false;
			}
			if (this.hasGroupNickName != groupCardRequest.hasGroupNickName || (this.hasGroupNickName && !this.groupNickName_.Equals(groupCardRequest.groupNickName_)))
			{
				return false;
			}
			if (this.hasMemberCount != groupCardRequest.hasMemberCount || (this.hasMemberCount && !this.memberCount_.Equals(groupCardRequest.memberCount_)))
			{
				return false;
			}
			if (this.memberList_.Count != groupCardRequest.memberList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.memberList_.Count; i++)
			{
				if (!this.memberList_[i].Equals(groupCardRequest.memberList_[i]))
				{
					return false;
				}
			}
			return this.hasGroupUserName == groupCardRequest.hasGroupUserName && (!this.hasGroupUserName || this.groupUserName_.Equals(groupCardRequest.groupUserName_));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GroupCardRequest, GroupCardRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<GroupCardRequest, GroupCardRequest.Builder>.PrintField("OpCode", this.hasOpCode, this.opCode_, writer);
			GeneratedMessageLite<GroupCardRequest, GroupCardRequest.Builder>.PrintField("GroupNickName", this.hasGroupNickName, this.groupNickName_, writer);
			GeneratedMessageLite<GroupCardRequest, GroupCardRequest.Builder>.PrintField("MemberCount", this.hasMemberCount, this.memberCount_, writer);
			GeneratedMessageLite<GroupCardRequest, GroupCardRequest.Builder>.PrintField<RoomInfo>("MemberList", this.memberList_, writer);
			GeneratedMessageLite<GroupCardRequest, GroupCardRequest.Builder>.PrintField("GroupUserName", this.hasGroupUserName, this.groupUserName_, writer);
		}
		public static GroupCardRequest ParseFrom(byte[] data)
		{
			return GroupCardRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GroupCardRequest MakeReadOnly()
		{
			this.memberList_.MakeReadOnly();
			return this;
		}
		public static GroupCardRequest.Builder CreateBuilder()
		{
			return new GroupCardRequest.Builder();
		}
		public override GroupCardRequest.Builder ToBuilder()
		{
			return GroupCardRequest.CreateBuilder(this);
		}
		public override GroupCardRequest.Builder CreateBuilderForType()
		{
			return new GroupCardRequest.Builder();
		}
		public static GroupCardRequest.Builder CreateBuilder(GroupCardRequest prototype)
		{
			return new GroupCardRequest.Builder(prototype);
		}
		static GroupCardRequest()
		{
			GroupCardRequest.defaultInstance = new GroupCardRequest().MakeReadOnly();
			GroupCardRequest._groupCardRequestFieldNames = new string[]
			{
				"BaseRequest",
				"GroupNickName",
				"GroupUserName",
				"MemberCount",
				"MemberList",
				"OpCode"
			};
			GroupCardRequest._groupCardRequestFieldTags = new uint[]
			{
				10u,
				26u,
				50u,
				32u,
				42u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.GroupCardRequest.Descriptor, null);
		}
	}
}
